package com.example.application.bean;

import java.io.Serializable;

public class StudentBean implements Serializable {

    private Integer id;

    private String name;

    private String gender;

    private int age;

    private ClassBean classBean;

    public StudentBean() {
    }

    public StudentBean(Integer id, String name, String gender, int age, ClassBean classBean) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.classBean = classBean;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public ClassBean getClassBean() {
        return classBean;
    }

    public void setClassBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", classBean=" + classBean +
                '}';
    }
}
